From 29438379b95f393166bd5eaaeb2f8ab3f11429d7 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 16 Feb 2007 12:13:33 +0000 Subject: [PATCH] Fix grant-table initialisation so that domain destruction does not barf. Signed-off-by: Keir Fraser --- xen/common/grant_table.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index f6961d5b1a..764af854eb 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -1329,6 +1329,7 @@ grant_table_create( memset(t->maptrack, 0, max_nr_maptrack_frames() * sizeof(t->maptrack[0])); if ( (t->maptrack[0] = alloc_xenheap_page()) == NULL ) goto no_mem_3; + memset(t->maptrack[0], 0, PAGE_SIZE); t->maptrack_limit = PAGE_SIZE / sizeof(struct grant_mapping); for ( i = 0; i < t->maptrack_limit; i++ ) t->maptrack[0][i].ref = i+1; -- 2.30.2